Free Access Week-  Data Engineering + BI
Data engineering and BI courses are free!
Free AI Access Week from June 2-8

distr6 (version 1.6.0)

[.VectorDistribution: Extract one or more Distributions from a VectorDistribution

Description

Once a VectorDistribution has been constructed, use [ to extract one or more Distributions from inside it.

Usage

# S3 method for VectorDistribution
[(vecdist, i)

Arguments

vecdist

VectorDistribution from which to extract Distributions.

i

indices specifying distributions to extract or ids of wrapped distributions.

Examples

Run this code
# NOT RUN {
v <- VectorDistribution$new(distribution = "Binom", params = data.frame(size = 1:2, prob = 0.5))
v[1]
v["Binom1"]

# }

Run the code above in your browser using DataLab